package cn.niit.letuseatdemo.entity.domain;

//import com.sun.xml.internal.bind.v2.TODO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.context.annotation.Description;

import java.util.List;


/**
 * 店铺类别对象 tb_shop_category
 * 
 * @author 陆品贤
 * @date 2022-10-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long categoryId;

    /** 名称 */

    private String categoryName;

    /** 图标 */

    private String categoryIcon;


    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setCategoryIcon(String categoryIcon) 
    {
        this.categoryIcon = categoryIcon;
    }

    public String getCategoryIcon() 
    {
        return categoryIcon;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("categoryIcon", getCategoryIcon())
            .toString();
    }

    /**
    * @Description: 一对多，注入店铺信息
    * @Author: 陆品贤
    * @CreateTime： 2022/11/17 22:53
    */
    List<Store> stores;
}
